import request from '@/axios/request'
import url from '@/axios/url'
const { mesUrl, adminUrl, wmsUrl } = url()
// 导出url
export const exportUrl = `${mesUrl}mesProdOrder/export`

export function typeOrderCreate(data = '') {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/c`,
    method: 'post',
    data: data
  })
}
export function typeOrderUpdate(data = '') {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/u`,
    method: 'post',
    data: data
  })
}
export function typeOrderPage(data = {}) {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/list`,
    method: 'get',
    params: data
  })
}
export function gradeListOne(data = {}) {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/gradeListOne`,
    method: 'get',
    params: data
  })
}
export function gradeListTwo(data = {}) {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/gradeListTwo`,
    method: 'get',
    params: data
  })
}
export function typeOrderDeleteById(id = '') {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/d/${id}`,
    method: 'get'
  })
}

export function typeOrderRepairCreate(data = '') {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/repair/c`,
    method: 'post',
    data: data
  })
}
export function typeOrderRepairPage(data = {}) {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/repair/page`,
    method: 'get',
    params: data
  })
}
export function typeOrderRepairDeleteById(id = '') {
  return request({
    url: `${mesUrl}mesPickUpCarOrderType/repair/d/${id}`,
    method: 'post'
  })
}
